<%- cache :controller => 'calendar', :action => current_user.id do -%>
<div class="bordeTitulo"><%= hide_on_click 'CALENDARIO' , 'calendarcontainer' %> </div>

<div class="point2" id='calendarcontainer'>
  <%- calendario = calendar(:year => (params[:year] || Time.now.year), :month => (params[:month] || Time.now.month), :abbrev => (0..0)) do |day| -%>
    <%- if @side_events_days.include?(day) -%>
    <%- [ link_to_remote(day.mday, 
                         :url => { :controller => 'event', :action => 'for_day', :id => "%04d%02d%02d" % [day.year, day.month, day.mday] },
                         :update => 'calendarDetail'),
         {:class => "dia_evento"} ] -%>
    <%- else -%>
    <%- [ day.mday, {:class => "dia"} ] -%>
    <%- end -%>
  <%- end -%>
  <%= calendario %>
  <div id="calendarDetail" style="background-color: #229a9a;">
  </div>
</div>
<%- end -%>
